﻿/// <reference path="~/Scripts/app/model.workspace.js" />

/**
 @title:        model
 @description:  Expose namespace - model.
 @author:       Yuriy Shapovalov (shapovalov.yuri@gmail.com)
 */

define('model',
    ['model.workspace', 'model.activity'],
    function (workspace, activity) {
        var
            model = {
                Workspace: workspace,
                Activity: activity
            };

        model.setDataContext = function (dc) {
            model.Workspace.datacontext(dc);
            model.Activity.datacontext(dc);
        };

        return model;
    });